//
//  RootViewController.h
//  斗鸡TV
//
//  Created by admin on 16/3/10.
//  Copyright © 2016年 admin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import "AFNetworking.h"
#import "NSDictionary+Accessors.h"
#import "SVProgressHUD.h"



@interface RootViewController : UIViewController


-(void)http_get_request:(NSString *)url parameters:(NSDictionary *)dic successBlock:(void (^)(NSDictionary*))success errorBlock:(void (^)(NSError *))failerror;

-(void)httpGetUrl:(NSString *)urlStr params:(NSDictionary *)params successBlock:(void (^)(NSDictionary *dict))success errorBlock:(void (^)(NSError *error)) error;

-(void)httpPostUrl:(NSString *)urlStr params:(NSDictionary *)params successBlock:(void (^)(NSDictionary *dict))success errorBlock:(void (^)(NSError *error)) error;


- (void)showSuccess:(NSString *)title;
- (void)showMessage:(NSString *)title;
- (void)showError:(NSString *)title;
- (void)showLoading;
- (void)dismissLoading;
- (void)popBackViewController;
- (void)showAlert:(NSString *)title CancelBlock:(void (^)())cancleBlock OkBlock:(void (^)())okBlock;


@end
